package test01;

import java.util.ArrayList;

public class Demo2 {

	public static void main(String[] args) {
		ArrayList<Student> arr =new ArrayList<Student>();
   
		Student s1=new Student("zdd",30);
		arr.add(s1);
		for(int i=0;i<arr.size();i++) 
		{
			Student s=arr.get(i);
			System.out.println(s.getName()+s.getAge());
		}
		
	}

}
